<?php
error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );

// Load settings file
require_once( '../settings.php' );
require_once( ABSPATH . 'config.php' );
require_once( ABSPATH . 'init.php');
require_once( ADMIN . 'init.php');

if($_SESSION['admin_login'] != true){
	$tpl->draw("login_form");
	exit;
}

dsfm_load_admin();

if(file_exists( MOD . $dsfm_module ."/init.php" )){
	require( MOD . $dsfm_module . "/init.php" );
}

// go!
require_once( 'php/admin.php' );
?>